/*
 * MyMessage.h
 *
 *  Created on: 26/06/2009
 *      Author: banouz
 */

#ifndef MYMESSAGE_H_
#define MYMESSAGE_H_

#define RT 0;
#define Text 1;
#define Kill 2;
#define Revive 3;

#include <iostream>
#include <string>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
#include <stdio.h>
#include <stdlib.h>
using namespace std;

class MyMessage
{
private :

  int _type; //0 - RT else: other
  string _inOut; //in or out
  string _from;
  string _to;
  string _regMess;
  int _treated; //0 - yes else no
  map<string, vector<string> > _Rt;

public:
  MyMessage();
  virtual
  ~MyMessage();

  MyMessage(string to,string from,int type,string regMess,
      map<string, vector<string> > *Rt);

  //MyMessage(const MyMessage &MyMy) ;


    int getTreated() const
    {
        return _treated;
    }

    void setTreated(int _treated)
    {
        this->_treated = _treated;
    }

    string getInOut() const
    {
        return _inOut;
    }

    void setInOut(string _inOut)
    {
        this->_inOut = _inOut;
    }

    int getType() const
    {
        return _type;
    }

    void setType(int _type)
    {
        this->_type = _type;
    }

    string getFrom() const
    {
        return _from;
    }

    void setFrom(string _from)
    {
        this->_from = _from;
    }

    string getTo() const
    {
        return _to;
    }

    void setTo(string _to)
    {
        this->_to = _to;
    }

    string getRegMess() const
    {
        return _regMess;
    }

    void setRegMess(string _regMess)
    {
        this->_regMess = _regMess;
    }

    map<string,vector<string> > getRt() const
    {
        return _Rt;
    }

    void setRt(map<string,vector<string> > _Rt)
    {
        this->_Rt = _Rt;
    }

};

#endif /* MYMESSAGE_H_ */
